{layout name="public:layout" /}
<h4 class="text-center text-danger">编辑用户信息</h4>
<form class="form-horizontal" action="{:url('admin/User/doEdit')}" method="post">
  <div class="form-group">
    <label for="inputEmail1" class="col-sm-2 control-label">用户名：</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="inputEmail1" name="name" value="{$userInfo.name}" placeholder="{$userInfo.name}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail2" class="col-sm-2 control-label">Email:</label>
    <div class="col-sm-10">
      <input type="email" class="form-control" id="inputEmail2" name="email" value="{$userInfo.email}" placeholder="{$userInfo.email}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">手机号：</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="inputEmail3" name="mobile" value="{$userInfo.mobile}" placeholder="{$userInfo.mobile}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail4" class="col-sm-2 control-label">密码：</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="inputEmail4" name="password" value="{$userInfo.password}" placeholder="{$userInfo.password}">
    </div>
  </div>
<!--    将当前用户的id作为隐藏域偷偷的传到服务器上去-->
    <input type="hidden" name="id" value="{$userInfo.id}">
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-info">保存</button>
    </div>
  </div>
</form>